<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
     <%@ taglib uri="http://tiles.apache.org/tags-tiles" prefix="tiles" %>
      <%@taglib prefix="s" uri="/struts-tags"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
</head>
<body>

<tiles:insertTemplate template="/WEB-INF/layout_admin/layout.jsp" flush="true"> 
	<tiles:putAttribute name="body" >
		<div class="main-content">
			<c:if test="${!empty message}">
				<s:property value="message"/>
				<br />
				<br />
			</c:if>
					<s:iterator value="pagination.results" status="status">
						<br />
						<br />
						<h3><s:property value="sugg_user_name"/> 于<s:property value="sugg_date"/>留言：</h3><br />
						${sugg_content}<br />
						<a href="deleteMessage.action?suggestionBox.sugg_id=${sugg_id}" onclick="return confirm('确定要删除吗？');">删除该信息</a>
						<hr />
						<br />
					</s:iterator>
		
			<c:if test="${pagination.no>1}">
			<a href="?pagination.no=1">首页</a>|
			</c:if>
			<c:if test="${pagination.previous}">
			<a href="?pagination.no=${pagination.no-1}&pagination.order=true&pagination.orderFieldName">上页</a>|
			</c:if>
			<c:if test="${pagination.next}">
			<a href="?pagination.no=${pagination.no+1}&pagination.order=true&pagination.orderFieldName">下页</a>|
			</c:if>
			<c:if test="${pagination.no<pagination.pageSum}">
			<a href="?pagination.no=${pagination.pageSum}">末页</a>
			</c:if>
		</div>
	</tiles:putAttribute>
</tiles:insertTemplate> 
</body>
</html>